<!--
 * @Author: yaojian66 1327629137@qq.com
 * @Date: 2022-06-28 16:21:21
 * @LastEditors: yaojian66 1327629137@qq.com
 * @LastEditTime: 2022-06-28 16:53:52
 * @FilePath: \geyao\第八十三题 新数组.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>新数组</title>
</head>

<body>
<!-- 请补全JavaScript代码，该函数接受两个参数分别为数组、索引值，要求在不改变原数组的情况下返回删除了索引项的新数组。 -->
  <script type="text/javascript">
    const _delete = (array, index) => {
      // 补全代码
      return array.slice(0, index).concat(array.slice(index+1));
    }
  </script>

</body>

</html>